package com.br.flexpront.controller
{
	import flash.events.EventDispatcher;
	
	[Bindable]
	public class EventController extends EventDispatcher
	{
		private static var _instance : EventController;
		
		public function EventController( lock : LockSingleton )
		{
			if(lock == null)
				throw new Error( "Use getInstance()" );
		}
		
		public static function getInstance():EventController
		{
			if( _instance == null )
			{
				_instance = new EventController(new LockSingleton());
			}
			return _instance;
		}
	}
}
internal class LockSingleton{}; 